package com.study.modules.jsoup.controller;

import com.study.common.utils.JsoupUtils;
import com.study.common.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Mr.Du
 * @Date 2021/10/3 10:17
 */
@RestController("/jsoup")
public class JsoupController {


    @GetMapping("/getByKeyWord")
    public R getJinDongInfoByKeyWord(@RequestParam String keyWord) throws Exception {
        return R.ok().put("info",JsoupUtils.parseJinDong(keyWord));
    }
}
